<?
  include('../init.php');
  
  $news_id = $_GET['aid'];
  
  $db->execute("DELETE FROM hs_news WHERE news_id = '$news_id'");
  
  if(file_exists('../../images/news/'.$news_id)){
    remove_dir('../../images/news/'.$news_id);
  }

  header("Location:index.php");
?>